package de.se2.sharebox.classes;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 *
 * @author Gruppe 10
 *
 */
public class SystemDataTypeJUnit
{
	private SystemDataType systemDataType;
	private UserAccount userAccount;
	
	@Before
	public void setUp () 
	{
		userAccount = new UserAccount("Taty", "taty@test.de", "taty");
		systemDataType = new SystemDataType("test", userAccount);
	}
	
	@Test
	public void testDelete() 
	{
		assertTrue(systemDataType.delete());
	}
	
	@Test
	public void testCopy() 
	{
		assertTrue(systemDataType.copy());
	}
	
	@Test
	public void testCut() 
	{
		assertTrue(systemDataType.cut());
	}
	
	@Test
	public void testInsert() 
	{
		assertTrue(systemDataType.insert());
	}
	
	@After
	public void resetGlobal () 
	{
		systemDataType = null;
		userAccount = null;
	}
}
